'use strict';
exports.main = async (event, context) => {
	uniCloud.init()
	const db = uniCloud.database()
	let res = db.collection('userinfo').where({
				openid : event.openid	
	}).get()
	
	//返回数据给客户端
	return res
};
